package com.aaa.stock.controller.invent;


import com.aaa.stock.service.medic.MedicinalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author GaoYa
 * @Date 2023/4/4 18:30
 * @Version 1.5
 */
@RestController
@RequestMapping("number")
public class DispenseApiController {
    @Autowired
    private MedicinalService medicinalService;

    @GetMapping("num/{num}/{itemName}")
    public Boolean updByDispense(@PathVariable String num, @PathVariable String itemName){
        return medicinalService.num(num,itemName);
    }
}
